import request from "@/utils/request";

export function getList(current, limit, data) {
  return request({
    url: `/admin/vod/teacher/findQueryPage/${current}/${limit}`,
    method: "post",
    data,
  });
}
export function removeTeacher(id) {
  return request({
    url: `/admin/vod/teacher/remove/${id}`,
    method: "delete",
  });
}

export function addTeacher(data) {
  return request({
    url: `/admin/vod/teacher/addTeacher`,
    method: "post",
    data,
  });
}
export function getTeacher(id) {
  return request({
    url: `/admin/vod/teacher/getTeacher/${id}`,
    method: "get",
  });
}

export function updateTeacher(data) {
  return request({
    url: `/admin/vod/teacher/updateTeacher`,
    method: "put",
    data,
  });
}
export function batchRemove(ids) {
  return request({
    url: `/admin/vod/teacher/deleteBatch`,
    method: "delete",
    data: ids,
  });
}
export function list() {
  return request({
    url: `/admin/vod/teacher/findAll`,
    method: "get",
  });
}
